package com.haiyou.dc.design.装饰模式;

import java.util.ArrayList;

/**
 * ArrayList方法add有缺陷，重写
 */
public class Test {

    public static void main(String[] args) throws Exception {

        BlockList blockList = new BlockList(new ArrayList());
        blockList.add("xx");

    }
}
